package com.maxd.respository.order;
import com.maxd.model.PublisherOrderDtoBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderJpaRepository extends JpaRepository<PublisherOrderDtoBean, Long> {

    Long count(Specification<PublisherOrderDtoBean> specification);

    List<PublisherOrderDtoBean> findAll(Specification<PublisherOrderDtoBean> specification);

    Page<PublisherOrderDtoBean> findAll(Specification<PublisherOrderDtoBean> specification, Pageable pageable);
}
